<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
    模板字符串
-->

<script>

    let year = 2024
    let month = 10
    let day = 6

    // let  time = '今天是'+year+'年'+month+'月'+day+'日'

    // 模板字符串 ${ } ` `
    let  time = `今天是${year}年${month}月${day}日`
    console.log(time)

</script>
</body>
</html>